package com.kaoshi.controller;


import com.kaoshi.common.config.Result;
import com.kaoshi.entity.Fw;
import com.kaoshi.service.IFwService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2024-11-05
 */
@RestController
@CrossOrigin
@RequestMapping("/fw")
public class FwController {
    @Autowired
    private IFwService fwService;

    @RequestMapping("getInfo")
    public Result getInfo(Integer id){
        List<Fw> list=fwService.getInfo(id);
        return Result.ok(list);
    }
}
